package com.gssbh.framework.toolkit.web.controller.edu;


import com.gssbh.framework.toolkit.web.annotation.EducationApi;
import com.gssbh.framework.toolkit.web.constant.ApiPathConstants;
import com.gssbh.framework.toolkit.web.controller.BaseController;
import org.springframework.web.bind.annotation.RequestMapping;


@EducationApi
public class EducationController extends BaseController {

    /**
     * 公开可见
     * @return String
     */
    @RequestMapping(value = ApiPathConstants.VISIBLE_API_SUFFIX)
    public String visible(){
        return "visible";
    }


    /**
     * 授权可见
     * @return String
     */
    @RequestMapping(value = ApiPathConstants.GRANT_API_SUFFIX)
    public String grant(){
        return "grant";
    }

    /**
     * 认证可见
     * @return String
     */
    @RequestMapping(value = ApiPathConstants.ALLOW_API_SUFFIX)
    public String allow(){
        return "allow";
    }

    /**
     * 教育局角色可操作(内置、默认) 或分配了权限
     * @return String
     */
    @RequestMapping(value = "/info")
    public String info(){
        return "edu role";
    }

}
